/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package ro.futurefeed.repository;

import java.io.Serializable;
import java.util.List;
import ro.futurefeed.model.Feed;
import ro.futurefeed.api.FeedStatus;
import ro.futurefeed.model.User;

/**
 *
 * @author Alex
 */
public interface FeedRepository{
    
    Feed delete(Feed feed);
 
    Feed save(Feed feed);
    
    Feed update(Feed feed);
    
    Feed findById(long id);
    
    List<Feed> getUserFeeds(User user);
    
    List<Feed> getFeeds(String toDate, FeedStatus status);
    
}
